﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class StringTest : System.Web.UI.Page
{
    private string a = "b5455c45-aad7-45dc-9cd2-b4c7a5ec7906.jpeg";

    protected void Page_Load(object sender, EventArgs e)
    {
        this.TextBox1.Text = a;
    }


    protected void Button1_Click(object sender, EventArgs e)
    {
        this.Label1.Text = this.TextBox1.Text.Substring(0, this.TextBox1.Text.LastIndexOf('.'));        
    }
}